Date Util
Types
Properties
Extract the year month and day from the receiving integer based on the YYYYMMDD encoding.
Returns null if the Int is today's date in the YYYYMMDD form.
Return the current date encoded as an YYYYMMDD int
Does a basic sanity check to see if the Int is of the form YYYYMMDD for any reasonable date, for a very loose definition of reasonable. If it's not, this returns null.
Functions
Calculate and return the number of days in between the two dates.
Calculate the number of days in the current month
Calculate the number of days in the given year
Function used to convert an integer date representation to a long date representation that can be used by the java.util.Date and Calendar objects, or code that interfaces with older versions of Moneydance.
Return the first date of the fiscal quarter containing 'date' if the fiscal year starts on the default fiscal year start date (month and day) specified in DateUtil.fiscalYearStartMMDD
Return the first date of the fiscal quarter containing 'date' if the fiscal year starts on the given day of the year (encoded as an integer of the form MMDD)
Return the first date of the fiscal year containing 'date' if the fiscal year starts on the default fiscal year start date (month and day) specified in DateUtil.fiscalYearStartMMDD
Return the first date of the fiscal year containing 'date' if the fiscal year starts on the given day of the year (encoded as an integer of the form MMDD)
Get the elapsed seconds since midnight today (using the target calendar instance)
Add the given number of years, months, and days to the given date.
Return the last date of the fiscal quarter containing 'date' if the fiscal year starts on the default fiscal year start date (month and day) specified in DateUtil.fiscalYearStartMMDD
Return the last date of the fiscal quarter containing 'date' if the fiscal year starts on the given day of the year (encoded as an integer of the form MMDD)
Return the last date of the fiscal year containing 'date' if the fiscal year starts on the default fiscal year start date (month and day) specified in DateUtil.fiscalYearStartMMDD
Return the last date of the fiscal year containing 'date' if the fiscal year starts on the given day of the year (encoded as an integer of the form MMDD)
Counts the number of months between start (inclusive) and end (exclusive). Fractional months are determined in terms of the number of days in the last monthly period.
Set the given Calendar object to the given integer-encoded date where the decimal value of the integer is YYYYMMDD.
Return a (date) date value for the given (date) time value (same date, but with the time set to around noon)
Return a (long) date value for the given (long) time value (same date, but with the time set to around noon)
Counts the number of years between start (inclusive) and end (exclusive). Fractional years are determined in terms of the number of months in the last year and then by the number of days in the last month.